package org.csu.petstore.ssm.service.impl;

import org.csu.petstore.ssm.entity.Order;
import org.csu.petstore.ssm.persistence.OrderMapper;
import org.csu.petstore.ssm.persistence.ProductMapper;
import org.csu.petstore.ssm.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("OrderService")
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public void insertOrder(Order order) {
    }

    @Override
    public List<Order> getOrders(String username) {
        return orderMapper.getOrdersByUsername(username);
    }
}
